package com.example.hospital.service;

import com.example.hospital.pojo.LeaveRequest;

import java.util.List;

public interface LeaveService {
    // 提交请假申请
    public void applyLeave(LeaveRequest leaveRequest);

    // 获取单个用户的请假申请
    public List<LeaveRequest> getLeavesByUserId(Integer userId);

    // 获取所有请假申请
    public List<LeaveRequest> getAllLeaves();

    // 审批请假申请
    public void approveLeave(Integer leaveId) ;

    public void rejectLeave(Integer leaveId) ;
}
